package cn.tedu.boot05.mapper;


import cn.tedu.boot05.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into user(username,password,nickname) values (#{username},#{password},#{nickname})")
    void insert(User user);

    @Select("select password from user where username=#{username}")
    User select(String username);

}
